home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / LookAndFeel$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.5 KB  |  31 lines

  1. package javax.swing;
  2.  
  3. import javax.swing.plaf.IconUIResource;
  4.  
  5. final class LookAndFeel$1 implements UIDefaults.LazyValue {
  6.    // $FF: synthetic field
  7.    private final String val$gifFile;
  8.    // $FF: synthetic field
  9.    private final Class val$baseClass;
  10.  
  11.    // $FF: synthetic method
  12.    LookAndFeel$1(Class var1, String var2) {
  13.       this.val$baseClass = var1;
  14.       this.val$gifFile = var2;
  15.    }
  16.  
  17.    public Object createValue(UIDefaults var1) {
  18.       byte[][] var2 = new byte[1][];
  19.       SwingUtilities.doPrivileged(new LookAndFeel.2(this.val$baseClass, var2, this.val$gifFile));
  20.       if (var2[0] == null) {
  21.          System.err.println(this.val$baseClass.getName() + "/" + this.val$gifFile + " not found.");
  22.          return null;
  23.       } else if (var2[0].length == 0) {
  24.          System.err.println("warning: " + this.val$gifFile + " is zero-length");
  25.          return null;
  26.       } else {
  27.          return new IconUIResource(new ImageIcon(var2[0]));
  28.       }
  29.    }
  30. }
  31.